﻿@model IEnumerable<projecto_asp.Models.momentoAvaliacao>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.id_momento_avaliacao)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tipoAvaliacao.descricao)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.disciplina.descricao)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.docente.id_docente)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.data_avaliacao)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.sala)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.horario)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.peso)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.observacoes)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.id_momento_avaliacao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tipoAvaliacao.descricao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.disciplina.descricao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.docente.id_docente)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.data_avaliacao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sala)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.horario)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.peso)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.observacoes)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
